package net.dfrz.oa.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import net.dfrz.oa.dao.repository.NoticeRepository;
import net.dfrz.oa.pojo.Notice;
import net.dfrz.oa.service.NoticeService;

@Service
public class NoticeServiceImpl implements NoticeService{

	@Autowired
	private NoticeRepository noticeRepository;
	/**
	 * 获取系统公告
	 */
	public Notice getByNid(Integer nid) {
		return noticeRepository.findOne(nid);
	}

}
